package library.service;

import library.po.Borrow;

import java.util.List;

public interface BorrowService{


    int deleteByPrimaryKey(Integer borrowId);

    int insert(Borrow record);

    Borrow selectByPrimaryKey(Integer borrowId);

    int updateByPrimaryKey(Borrow record);

    List<Borrow> selectByUserId(String userId);

    int renew(Integer borrowId);

    List<Borrow> selectBorrow(String str);

    List<Borrow> selectAllBorrow();

    int returnBook(Borrow record);
}
